<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
            <title>Cindy JS</title>
            <script type="text/javascript" src="../build/js/Cindy.js"></script>
            <link rel="stylesheet" href="../css/cindy.css">


            </head>

	<body style="font-family:Arial;">

        <h1>CindyJS: Angle Bisector</h1>


        <script id='csmove' type='text/x-cindyscript'>
          //  errc(b.angle);
          //  a.angle=b.angle+90°;
            </script>


        <div  id="CSCanvas" style="width:500px; height:500px; border:2px solid #000000"></div>

        <script type="text/javascript">

            var gslp=[

                      {name:"A", type:"Free", pos:[2.2,0],color:[0,0,0]},
                      {name:"B", type:"Free", pos:[-1,3],color:[0,0,0]},
                      {name:"C", type:"Free", pos:[2,-3],color:[0,0,0]},
                      {name:"a", type:"Through", args:["A"],dir:[1,1,0],color:[0,0,1]},
                      {name:"b", type:"Join", args:["B","C"],color:[0,0,1]},
                      {name:"D", type:"Meet", args:["a","b"],color:[0,0,1]},
                      {name:"c", type:"CircleMr", args:["D"],radius:3,color:[0,0,1]},
                      {name:"E", type:"PointOnCircle", args:["c"],angle:Math.PI/4,color:[1,0,0]},

                      ];
            CindyJS({canvasname:"CSCanvas",
                        movescript:"csmove",
                        geometry:gslp});

        </script>

	</body>
</html>
